package com.myopen.task;

import com.myopen.kit.UUIDKit;
import com.myopen.model.Log;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class MyTask3 implements Job{

	public static int a=0;
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {

		String userId="system";//系统用户ID，转为后台一级其他非人工操作的情况设置的用户
		String taskId=UUIDKit.getUUID();//为了方便查询一次任务里的所有日志
		Log.dao.addHideLog(userId, "MyTask3开始执行-"+taskId,"job_MyTask3");

		System.out.println("MyTask3:我执行了"+(++a)+"次");

		Log.dao.addHideLog(userId, "MyTask3执行完成-"+taskId,"job_MyTask3");
	}

}
